const fs = require('fs')
const path = require('path')


let dirNamePath = path.join(__dirname, './data/登白帝城.txt')

let ws = fs.createWriteStream(dirNamePath);

ws.write('白日依山尽\n')
ws.write('黄河入海流\n')
ws.write('欲穷千里目\n')
ws.write('更上一层楼\n')
ws.write('哈哈哈~~\n')
ws.write('呵呵呵~~\n')
ws.write('啊啊啊~~\n')

/* 关闭通道 */
ws.close()